import java.util.Random;
public class CodeTest {
	
	public static void main (String[] args) {
		
		int[] red = new int[6];
		int blue;
        boolean temp;												
		Random ra = new Random();
		for(int i = 0;i < red.length;i++) {
            temp = true;
			red[i] = ra.nextInt(33) + 1;
		    for(int j = 0;j < i;j++) {
		    	if(red[i] == red[j]) {
			    	temp = false;
			    }
		    }
		    if(temp == false) {
				i--;
			}
		}
		blue = ra.nextInt(16) + 1;
		System.out.println("本期的红球号码为：");
		for(int i = 0;i < red.length;i++){
			System.out.print(red[i] + " ");
		}
		System.out.println("");
		System.out.println("本期的蓝球号码为：");
		System.out.println(blue);
		System.out.println("你中奖了吗？");
	}
}